package ar.com.jendrix.common.persistence.entity.dto;

import java.io.Serializable;

@SuppressWarnings("serial")
public abstract class BaseEntityDTO implements Descriptible, Serializable {

	private boolean selected;

	public final boolean isSelected() {
		return selected;
	}

	public final void setSelected(boolean selected) {
		this.selected = selected;
	}

	/**
	 */
	public abstract Long getId();

	/**
	 */
	public abstract void setId(Long id);

	@Override
	public String getDescription() {
		return "";
	}

	/**
	 */
	@Override
	public int hashCode() {
		return getId().hashCode();
	}

	/**
	 */
	@Override
	public boolean equals(Object to) {
		return getId().equals(((BaseEntityDTO) to).getId());
	}
}